#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve()
{
    int n;
    cin>>n;
    int a=n/2+1,b=1;
    int x,y;
    for(int i=1;i<=n;i++)
    {
        if(i==1)cin>>x;
        else 
        {
            cin>>y;
            if(y<0)y*=-1;
            if(y<=x)b++;
        }
        if(x<0)x*=-1;
    }
    if(b<=a)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
}
signed main()
{
    //ios::sync_with_stdio(false);
    //cin.tie(nullptr);
    int T=1;
    cin>>T;
    while(T--)
    {
       solve();
    }
    return 0;
}